package com.ruoyi.crm.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 销售退货单对象 return_sales
 *
 * @author ruoyi
 * @date 2021-08-27
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ReturnSales extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private String id;

    /** 销售退货单号 */
    @Excel(name = "销售退货单号")
    private String returnNo;

    /** 客户名称 */
    @Excel(name = "客户名称")
    private String customerName;

    /** 合同编号 */
    @Excel(name = "合同编号")
    private String contractNo;

    /** 退货日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退货日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date returnDate;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 退入仓库 */
    @Excel(name = "退入仓库")
    private String returnFac;

    /** 应退款 */
    @Excel(name = "应退款")
    private String srefund;

    /** 已退款 */
    @Excel(name = "已退款")
    private String yrefund;

    /** 销售负责人 */
    @Excel(name = "销售负责人")
    private String follower;

    /** 退货原因 */
    @Excel(name = "退货原因")
    private String reasonReturn;


    /** 创建人 */
    @Excel(name = "创建人")
    private String creator;

    /** 最新更新人 */
    @Excel(name = "最新更新人")
    private String updatePer;

    /** 评论 */
    @Excel(name = "评论")
    private String comment;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setReturnNo(String returnNo)
    {
        this.returnNo = returnNo;
    }

    public String getReturnNo()
    {
        return returnNo;
    }
    public void setCustomerName(String customerName)
    {
        this.customerName = customerName;
    }

    public String getCustomerName()
    {
        return customerName;
    }
    public void setContractNo(String contractNo)
    {
        this.contractNo = contractNo;
    }

    public String getContractNo()
    {
        return contractNo;
    }
    public void setReturnDate(Date returnDate)
    {
        this.returnDate = returnDate;
    }

    public Date getReturnDate()
    {
        return returnDate;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setReturnFac(String returnFac)
    {
        this.returnFac = returnFac;
    }

    public String getReturnFac()
    {
        return returnFac;
    }
    public void setSrefund(String srefund)
    {
        this.srefund = srefund;
    }

    public String getSrefund()
    {
        return srefund;
    }
    public void setYrefund(String yrefund)
    {
        this.yrefund = yrefund;
    }

    public String getYrefund()
    {
        return yrefund;
    }
    public void setFollower(String follower)
    {
        this.follower = follower;
    }

    public String getFollower()
    {
        return follower;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("returnNo", getReturnNo())
                .append("customerName", getCustomerName())
                .append("contractNo", getContractNo())
                .append("returnDate", getReturnDate())
                .append("status", getStatus())
                .append("returnFac", getReturnFac())
                .append("srefund", getSrefund())
                .append("yrefund", getYrefund())
                .append("follower", getFollower())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}